import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  mode: 'history',//去除#
  routes: [
    {
      path: '/',//聊天页面
      name: 'Chat',
      component:()=>import('@/components/demo/Chat')
    },

    {
      path:"/login",//地址
      name:"login",//描述
      component:()=>import('@/components/page/Login')
    },

    {
      path:"/index",
      name:"index",
      component:()=>import('@/components/page/Index'),
      children:[
        {
          path: "seniorNode",
          name: "SeniorNode",
          component: () => import('@/components/page/SeniorNode')
        },
        {
          path: "companyNode",
          name: "CompanyNode",
          component: () => import('@/components/page/CompanyNode')
        },
        {
          path: "shareHolderNode",
          name: "ShareHolderNode",
          component: () => import('@/components/page/ShareholderNode')
        },
        {
          path: "documentUpload",
          name: "DocumentUpload",
          component: () => import('@/components/page/document_upload')
        }
    ]
    },
    {
      path:"/analyzechat",//地址
      name:"AnalyzeChat",//描述
      component:()=>import('@/components/demo/AnalyzeChat')
    },
    {
      path:"/changepassword",//地址
      name:"Changepassword",//描述
      component:()=>import('@/components/page/Changepassword')
    },
    {
      path:"/chatstream01",//地址
      name:"ChatStream01",//描述
      component:()=>import('@/components/demo/ChatStream01')
    },

  ]
})
